import http from '@/plugins/axios'

// 列表
export function getUserInfo() {
  return http({
    method: 'POST',
    url: '/sys/user/personalInfo'
  })
}

export function updateUserInfo(data) {
  return http({
    method: 'POST',
    url: '/sys/user/updatePersonalInfo',
    data
  })
}

export function personalCustomerDataPage(data) {
  return http({
    method: 'POST',
    url: '/ykf/accountInputRecord/personalCustomerDataPage',
    data
  })
}

export function personalShopPage(data) {
  return http({
    method: 'POST',
    url: '/ykf/accountInputRecord/personalShopPage',
    data
  })
}

export function confirmSubAccount(data) {
  return http({
    method: 'POST',
    url: '/ykf/accountInputRecord/confirmSubAccount',
    data
  })
}

export function personalServiceDataPage(data) {
  return http({
    method: 'POST',
    url: '/ykf/accountInputRecord/personalServiceDataPage',
    data
  })
}

export function personalCommissionCheckPage(data) {
  return http({
    method: 'POST',
    url: '/ykf/accountInputRecord/personalCommissionCheckPage',
    data: data.condition
  }).then(res => {
    return {
      list: res,
      totalCount: 0
    }
  })
}
